class RenameSspTableColumns < ActiveRecord::Migration[5.0]
  def change
    change_table :ssp_reports do |t|
      t.rename  :comm_id, :commodity_id

      t.integer :user_id
      t.index   :user_id

      t.boolean :confirmed
      t.index :confirmed
    end

    change_table :ssp_users do |t|
      t.boolean :admin
    end
  end
end
